<?php echo $this->element('admin/admin_leftmenu'); ?>
<div id="left">
    <?php
    echo $this->Session->flash();
    if ($this->Session->check('Message.auth'))
        echo $this->Session->flash('auth');
    ?>
    <div class="div_header"><?php __('Add New Admin'); ?></div>
    <div class="div_content">
        <div style="color: red;">All the entries with * are mandatory for signup. Please fill in all information correctly.</div>
       <?php echo $this->Form->create('User');?>
	      <label for="UserUsername">
                        Username</label><input type="text" id="UserUsername"
                           class="required"   maxlength="255" name="data[User][username]">
	<?php
		//echo $this->Form->input('username');
		echo $this->Form->input('password');
		//echo $this->Form->input('group_id');
		echo $this->Form->input('first_name',array('div'=>false));
		echo $this->Form->input('last_name',array('div'=>false));
		echo $this->Form->input('street',array('div'=>false));
		echo $this->Form->input('address',array('div'=>false));
		echo $this->Form->input('city',array('div'=>false));
		echo $this->Form->input('state_id',array('div'=>false,'empty'=>'Select'));
		echo $this->Form->input('zip',array('div'=>false));
		echo $this->Form->input('country_id',array('div'=>false,'empty'=>'Select'));
		echo $this->Form->input('primary_phone',array('div'=>false));
		echo $this->Form->input('email',array('div'=>false));
		echo $this->Form->input('secretquestion_id',array('empty'=>'Select your Secret question'));
		echo $this->Form->input('ques_ans',array('div'=>false));
		echo $this->Form->input('dateofbirth');
	?>
	
<?php //echo $this->Form->end('Submit',array('div'=>FALSE,'class'=>'submit'));?>
    <input type="submit" value="Submit" class="submit">
            </div>
            <div class="div_bottom"></div>
        </div>

        <!-- edit sidebar items here -->

        </div>
<?php
                        echo $this->Html->css('table_css');
?>

<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js","jquery.pagination.js","jquery.tablesorter.min.js","jquery.tablednd.js")); ?>	 
<script type="text/javascript">

    jQuery(document).ready(function(){
        jQuery("#category_table").tablesorter({headers: {4:{sorter: false}, 5:{sorter: false}}});
    });
</script>